package com.ymttest.common.enums;

/**
 * 订单退货种类
 */
public enum OrderRefundedTypeEnum {
	/**
	 * 本土退货
	 */
	LocalRefund(1),
	/**
	 * 退货退款
	 */
	SalesRefund(2);

	private int intValue;
	private static java.util.HashMap<Integer, OrderRefundedTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, OrderRefundedTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, OrderRefundedTypeEnum>();
		}
		return mappings;
	}

	private OrderRefundedTypeEnum(int value) {
		intValue = value;
		OrderRefundedTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static OrderRefundedTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}